package welsch.androidwerwolf;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.LinkedList;
import java.util.List;

import welsch.androidwerwolf.Role.Role;

/**
 * Created by loki on 11.01.2015.
 */
public class Globals {

    static{
        gPlayerList = new LinkedList<>();
        gRoleList  = new LinkedList<>();
    }
    public static List<Player> gPlayerList;
    public static List<Role> gRoleList;

    public static void saveAllePlayers(){

    }
    public static  void saveImage(Image image, String path){

    }

    private void loadImageFromStorage(String path) {
        Image result = null;

        try {

            File f=new File(path);
            Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));
        }
        catch (FileNotFoundException e)
        {
            e.printStackTrace();
        }
    }
}
